package com.zk.ppa.service.impl;

import com.zk.ppa.dao.po.EducationFunding;
import com.zk.ppa.dao.repository.EducationFundingRepository;
import com.zk.ppa.service.EducationFundingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author fengq
 */
@Service
public class EducationFundingServiceImpl implements EducationFundingService {
    @Autowired
    private EducationFundingRepository educationFundingRepository;

    @Override
    public Boolean saveEducation(EducationFunding educationFunding) {
        return educationFundingRepository.save(educationFunding);
    }

    @Override
    public Boolean updateEducationById(EducationFunding educationFunding) {
        return educationFundingRepository.updateById(educationFunding);
    }

    @Override
    public Boolean deleteEducationById(Long id) {
        return educationFundingRepository.removeById(id);
    }

    @Override
    public Boolean deleteBatchEducationByIds(List<Long> ids) {
        return educationFundingRepository.removeByIds(ids);
    }
}
